package com.模板方法模式.流程模板;

/**
 * @author: wh(1835734390 @ qq.com)
 * @date: 2023/7/7 10:32
 * @description:
 * @version:
 */
public abstract class AbsShape {
    public double process() {
        input();
        double value = getArea();
        return value;
    }
    protected abstract void input();
    public abstract double getArea();

}
